package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_GFS_CONFIG"
 *     
*/
public class CcpGfsConfig implements Serializable {

    /** identifier field */
    private String cgcGuid;

    /** nullable persistent field */
    private String cgcName;

    /** nullable persistent field */
    private String cgcCode;

    /** nullable persistent field */
    private String dirName;

    /** nullable persistent field */
    private String dirPath;

    /** nullable persistent field */
    private String parentGuid;

    /** nullable persistent field */
    private String remark;

    /** nullable persistent field */
    private String configType;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** nullable persistent field */
    private String reserved4;

    /** nullable persistent field */
    private String reserved5;

    /** full constructor */
    public CcpGfsConfig(String cgcGuid, String cgcName, String cgcCode, String dirName, String dirPath, String parentGuid, String remark, String configType, String reserved1, String reserved2, String reserved3, String reserved4, String reserved5) {
        this.cgcGuid = cgcGuid;
        this.cgcName = cgcName;
        this.cgcCode = cgcCode;
        this.dirName = dirName;
        this.dirPath = dirPath;
        this.parentGuid = parentGuid;
        this.remark = remark;
        this.configType = configType;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
        this.reserved4 = reserved4;
        this.reserved5 = reserved5;
    }

    /** default constructor */
    public CcpGfsConfig() {
    }

    /** minimal constructor */
    public CcpGfsConfig(String cgcGuid) {
        this.cgcGuid = cgcGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CGC_GUID"
     *         
     */
    public String getCgcGuid() {
        return this.cgcGuid;
    }

    public void setCgcGuid(String cgcGuid) {
        this.cgcGuid = cgcGuid;
    }

    /** 
     *            @hibernate.property
     *             column="CGC_NAME"
     *             length="100"
     *         
     */
    public String getCgcName() {
        return this.cgcName;
    }

    public void setCgcName(String cgcName) {
        this.cgcName = cgcName;
    }

    /** 
     *            @hibernate.property
     *             column="CGC_CODE"
     *             length="20"
     *         
     */
    public String getCgcCode() {
        return this.cgcCode;
    }

    public void setCgcCode(String cgcCode) {
        this.cgcCode = cgcCode;
    }

    /** 
     *            @hibernate.property
     *             column="DIR_NAME"
     *             length="50"
     *         
     */
    public String getDirName() {
        return this.dirName;
    }

    public void setDirName(String dirName) {
        this.dirName = dirName;
    }

    /** 
     *            @hibernate.property
     *             column="DIR_PATH"
     *             length="150"
     *         
     */
    public String getDirPath() {
        return this.dirPath;
    }

    public void setDirPath(String dirPath) {
        this.dirPath = dirPath;
    }

    /** 
     *            @hibernate.property
     *             column="PARENT_GUID"
     *             length="32"
     *         
     */
    public String getParentGuid() {
        return this.parentGuid;
    }

    public void setParentGuid(String parentGuid) {
        this.parentGuid = parentGuid;
    }

    /** 
     *            @hibernate.property
     *             column="REMARK"
     *             length="50"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    /** 
     *            @hibernate.property
     *             column="CONFIG_TYPE"
     *             length="2"
     *         
     */
    public String getConfigType() {
        return this.configType;
    }

    public void setConfigType(String configType) {
        this.configType = configType;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="50"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="50"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="50"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED4"
     *             length="100"
     *         
     */
    public String getReserved4() {
        return this.reserved4;
    }

    public void setReserved4(String reserved4) {
        this.reserved4 = reserved4;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED5"
     *             length="100"
     *         
     */
    public String getReserved5() {
        return this.reserved5;
    }

    public void setReserved5(String reserved5) {
        this.reserved5 = reserved5;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cgcGuid", getCgcGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpGfsConfig) ) return false;
        CcpGfsConfig castOther = (CcpGfsConfig) other;
        return new EqualsBuilder()
            .append(this.getCgcGuid(), castOther.getCgcGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCgcGuid())
            .toHashCode();
    }

}
